home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / battlefi.swf / scripts / DefineSprite_287 / frame_1 / PlaceObject2_282_33 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2010-11-09  |  340b  |  15 lines

  1. onClipEvent(enterFrame){
  2.    if(dupe)
  3.    {
  4.       i = 1;
  5.       while(i < Math.round(_root.lvl / 2 + 1))
  6.       {
  7.          duplicateMovieClip(_root.castle.thing,"th" + i,16384 + (500000 + i));
  8.          _root.castle["th" + i]._x = -13.1;
  9.          _root.castle["th" + i]._y = -2;
  10.          dupe = false;
  11.          i++;
  12.       }
  13.    }
  14. }
  15.